home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
utility
/
freedos.zip
/
COM050.ZIP
/
TESTENV.C
< prev
next >
Wrap
Text File
|
1996-01-17
|
501b
|
24 lines
int main (int argc, char *argv[], char *env[])
{
int count;
puts ("Commandline:");
for (count = 0; count < argc; count++)
printf ("%d: %s\n", count, argv[count]);
puts ("\nEnvironment:");
for (count = 0; env[count]; count++)
printf ("%d: %s\n", count, env[count]);
putenv ("PATH=");
puts ("\nEnvironment after a setenv (\"PATH=\");:");
for (count = 0; env[count]; count++)
printf ("%d: %s\n", count, env[count]);
return 0;
}